var app = getApp()
Page({

  /**
   * 页面的初始数据
   */
  data: {
    navHeight: app.globalData.navHeight + 'px', //头部距离
    srcRightArrow: '../../statics/images/right_arrow_icon.png',
  },

  onLoad() {
    let mobile = wx.getStorageSync('mobile').split('')
    mobile.splice(3, 4, '****')
    this.setData({
      phone: mobile.join(''),
    })
  },

  onPasswordVerify() {
    wx.navigateTo({
      url: '/pages/passwordVerify/passwordVerify',
    })
  },
  onAssistVerify() {
    wx.navigateTo({
      url: '/pages/familyPhone/familyPhone',
    })
  },
  onPhoneVerify() {
    let mobile = wx.getStorageSync('mobile')
    wx.showModal({
      title: '手机号验证',
      content: `即将发送验证码到 +86 ${mobile}通过短信验证码进行验证`,
      mask: true,
      complete: (res) => {
        if (res.confirm) {
          wx.navigateTo({
            url: `/pages/codeVerify/codeVerify?type=1&&phone=${mobile}`,
          })
        }
      }
    })

  },
})